/*
 * @(#)MqFailureLogDao.java 2011-12-28
 *
 * Copyright 2011 北龙中网（北京）科技有限责任公司. All rights reserved.
 */
package cn.shangjia.shop.dao.common;

import java.util.Map;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

/**
 *
 * @author <a href="mailto:jinzhongze@knet.cn">jinzhongze</a>
 * @version 1.0, 2011-12-28 16:38:49
 * @since 1.0
 */
@Repository
public class MqFailureLogDao extends SqlSessionDaoSupport implements ICommonDao {
	
	public void create(Map<String, Object> obj) {
		getSqlSession().insert(MQ_FAILURE_LOG_NAME_SPACE + ".create", obj);
	}
	
	@SuppressWarnings("unchecked")
	public Map<String, String> read(String id) {
		return (Map<String, String>) getSqlSession().selectOne(NAME_SPACE + ".read", id);
	}
}
